﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
using DAL;

namespace BLL
{
    public class GmTypeManage
    {
        //新增
        public static bool AddGmType(GmType gt)
        {
            return GmTypeService.AddGmType(gt);
        }
        //删除
        public static bool DeleGmType(int id)
        {
            return GmTypeService.DeleGmType(id);
        }
        //修改指定全部内容
        public static bool UpdaGmType(GmType gt)
        {
            return GmTypeService.UpdaGmType(gt);
        }
        //查询所有信息
        public static List<GmType> SeleAllGmType()
        {
            return GmTypeService.SeleAllGmType();
        }

        //查指定定类型名称信息
        public static List<GmType> SelenameGmType(string name)
        {
            return GmTypeService.SelenameGmType(name);
        }

        //查指定定id信息
        public static List<GmType> SeleIdGmType(int id)
        {
            return GmTypeService.SeleIdGmType(id);
        }

        //big俊2021/1/23
        public static List<Game> Ga_me(int Gm_TypeId)
        {
            return GmTypeService.Ga_me(Gm_TypeId);
        }
    }
}
